import Vue from 'vue'
import App from './App.vue'
import * as API from '@/api'
import router from './router'
import {Container,Main,Header,Footer,Button,Icon,Input,Dialog,Pagination} from 'element-ui'
Vue.use(Container)
   .use(Main)
   .use(Footer)
   .use(Header)
   .use(Button)
   .use(Icon)
   .use(Input)
   .use(Dialog)
   .use(Pagination)
Vue.config.productionTip = false
new Vue({
  beforeCreate() {
    Vue.prototype.$bus=this,
        Vue.prototype.$API=API
  },
  router,
  render: h => h(App),
}).$mount('#app')
